﻿import Localization from '../../lib/js/vue.localization';
import Util from '../../lib/js/vue.util';

var _groupName = "BangleAbp";

var L = (k) => {
    return Localization.l(_groupName + '.' + k);
};

var checkAuth = (k) => {
    return Util.checkAuth(_groupName + '.' + k);
}

export default {
    init({ store }) {

    },
    getMenus() {
        var _group = {
            id: 'Products',
            title: L('Menu:Products'),
            icon: 'el-icon-s-tools',
            children: []
        };

        if (checkAuth('Products.ProductType')) {
            _group.children.push({
                id: _groupName + 'ProductType',
                title: L('ProductType'),
                url: '/Products/ProductType'
            });
        }
        return _group;
    }
}